package com.cksys.userserver.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author: yxzhang23
 * @time: 2021/4/9
 */
@ControllerAdvice
public class ExpressionHandler {

    @ExceptionHandler(Exception.class)
    public String exceptionHandler(Exception e) {
        return e.getMessage();
    }

}
